package org.alex.samples.dao;

import java.util.List;

import org.alex.samples.model.Subject;

public interface ISubjectDAO extends IBaseDAO<Subject>{
	public List<Subject> findAllSubject();
	
	public void createSubject(Subject subject) throws Exception;
	
	public Subject getSubjectById(Integer subId);
	
	public Integer editSubject(Subject subject) throws Exception;

	public Integer deleteSubject(Integer subId)  throws Exception;
	
	public List<String> getAllUserBySubject(Integer subjectId);
	
	public List<Subject> getSelSubjectByUser(String userId);
	
	public void insertSubjectUsers(List<String> insertList, Integer subjectId);
	
	public void deleteSubjectUsers(List<String> delList, Integer subjectId);
	
	public Subject getSubjectBySubjectName(String subjectName);
 
}
